package com.hj.system.base.config;

import com.hj.system.base.utils.StringUtils;
import com.jagregory.shiro.freemarker.PermissionTag;

public class HasPermissionTags extends PermissionTag {
    @Override
    protected boolean showTagBody(String p) {
        if (StringUtils.isNotBlank(p)) {
            String[] ps = p.split(",");
            for (String p_1 : ps) {
                if (isPermitted(p_1)) {
                    return true;
                }
            }
        }
        return false;
    }
}
